package StudyCode.summary.mycollection;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class UsingCollectionsMethodSort {
	public static void main(String[] args) {
		String[] suits = {"Hearts", "Diamonds", "Clubs", "Spades"};
		List<String> list = Arrays.asList(suits);
		System.out.printf("排序前， array 元素: %s%n", list);
		Collections.sort(list);
		System.out.printf("排序后， array 元素: %s%n", list);
	}
}
